package com.linhdoha.ui 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Linhdoha
	 */
	public class TileListEvent extends Event 
	{
		public static const ITEM_MOUSE_DOWN:String = "itemMouseDown";
		public static const ITEM_MOUSE_UP:String = "itemMouseUp";
		public static const ITEM_MOUSE_CLICK:String = "itemMouseClick";
		public static const ITEM_MOUSE_OVER:String = "itemMouseOver";
		public static const ITEM_MOUSE_OUT:String = "itemMouseOut";
		public static const RESCROLL:String = "reScroll";
		private var _item:Object;
		
		public function TileListEvent(type:String, item:Object, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			_item = item;
		} 
		
		public override function clone():Event 
		{ 
			return new TileListEvent(type, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("TileListEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
		public function get item():Object { return _item; }
		
	}
	
}